PHP oops - Magic Method

Magic methods are special methods that are used to perform certain tasks in PHP. Magic methods are started with double underscore (__) as prefix. The function __construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __serialize(), __unserialize(), __toString(), __invoke(), __set_state(), __clone() and __debugInfo() are called as Magic Methods in php...

PHP OOPs - Interfaces

What is an interface in php? An interface contains All abstract methods by default. An interface doesn't have any common methods. Methods of interface do not have any implementation part. Methods of interface are only declared....

PHP - What is OOP?

PHP OOP is Object-Oriented Programming. Procedural programming is about writing procedures or functions that perform operations on the data while object-oriented programming is about creating objects and class that contain both data and functions....